package com.hospital.demo.service.impl.jiashuai;



import com.hospital.demo.mapper.jiashuai.IBranchDao;
import com.hospital.demo.model.jiashuai.Branch;
import com.hospital.demo.service.jiashuai.IBranchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BranchServiceImpl implements IBranchService {
    @Autowired
    private IBranchDao iBranchDao;
    @Override
    public List<Branch> selectBranch() {
        return iBranchDao.selectBranch();
    }

    @Override
    public int delBranch(int id) {
        return iBranchDao.delete(id);
    }

    @Override
    public int addBreach(Branch branch) {
        return iBranchDao.insert(branch);
    }
}
